<%@ page language="java" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8"%>
<%@ taglib prefix="s" uri="/struts-tags"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">

<link type="text/css" rel="stylesheet" href="${pageContext.request.contextPath}/css/default.css" />

<script src="${pageContext.request.contextPath}/js/jquery-1.4.2.min.js" type="text/javascript"></script>
<script src="${pageContext.request.contextPath}/js/jquery.floatbox.10.4.min.js" type="text/javascript"></script>
<script language="JavaScript">

$(document).ready(function(){
	
	$("#Previous").click(function(){
	       
        $("#maintainproduct_currentPage").val($("#maintainproduct_currentPage").val()-1);
           
         $("form").submit();
      });
      
       $("#Next").click(function(){
 
        $("#maintainproduct_currentPage").val(parseInt($("#maintainproduct_currentPage").val())+1);
           
         $("form").submit();
      });
      
});
</script>
<title>订单管理</title>
</head>
<body marginwidth="0" marginheight="0" topmargin="0" leftmargin="0">
	<table width="100%" border="0" cellpadding="2" cellspacing="1" bgcolor="#336600">
    	<tr> 
      		<td width="100%" bgcolor="#669900"><strong><font color="#FFFFFF">订单管理</font></strong></td>
    	</tr>
    	<tr align="center" bgcolor="#F9F9F9"> 
      		<td>
      			<table height="0%" width="98%" cellspacing="1" cellpadding="3" border="0">
		          	<tr bgcolor="#669900"> 
			            <td><font color="#FFFFFF"><strong>产品名称</strong></font></td>
			            <td><font color="#FFFFFF"><strong>订购者</strong></font></td>
			            <td><font color="#FFFFFF"><strong>电话</strong></font></td>
			            <td><font color="#FFFFFF"><strong>地址</strong></font></td>
			            <td><font color="#FFFFFF"><strong>订购数量</strong></font></td>
			            <td><font color="#FFFFFF"><strong>订购日期</strong></font></td>
			            <td width="15%" align="center"><font color="#FFFFFF"><strong>操作</strong></font></td>
		          	</tr>
		          	<s:set name="num" value="0"></s:set>
		          	<s:iterator value="orders">
	          			<tr bgcolor="#e7e7e7"> 
				            <td width="25%"><s:property value="product.name" /></td>
				            <td width="10%"><s:property value="subscribe_name"/></td>
				            <td width="10%"><s:property value="phone" /></td>
				            <td width="10%"><s:property value="address" /></td>
				            <td width="10%"><s:property value="order_count" /></td>
				            <td width="10%"><s:date name="order_date" format="dd/MM/yyyy"/></td>
				            <td align="center" width="30%">
				            	<img hspace="5" align="absmiddle" src="${pageContext.request.contextPath}/images/admin/delenews.gif" /><a href='<s:url value="deleteOrder.action"><s:param name="orderId" value="id"/></s:url>' >删除</a>
				            </td>
	          			</tr>
          			</s:iterator>
          		  	<tr> 
            			<td colspan="7" align="center"> <hr width="95%" style="color:#669900"></td>
          			</tr>
        		</table>
      		</td>
    	</tr>
  	</table>
</body>
</html>